package org.itboys.core.entity.mongo;

import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * @Author：贾琦磊
 * @Date：2018/8/1
 * @Description：小区实体类
 */
@Entity(value = "SundayVillage",noClassnameStored = true)
public class SundayVillage extends BaseMongoEntity{
    /**
     * 小区名称
     */
    private String name;
    /**
     * 小区图片
     */
    private String image;
    /**
     * 类型
     * 1--小区
     * 2--写字楼
     * 3--其他后续再加
     */
    private Integer type;
    /**
     * 小区所属省id
     */
    private Long provinceId;
    /**
     *小区所属省名称
     */
    private String provinceName;
    /**
     * 小区所属市id
     */
    private Long cityId;
    /**
     * 小区所属市名称
     */
    private String cityName;
    /**
     * 小区所属区id
     */
    private Long districtId;
    /**
     * 小区所属区名称
     */
    private String districtName;
    /**
     * 小区所属详细地址
     */
    private String address;
    /**
     * 小区经纬度-经度
     */
    private Double longitude;
    /**
     * 小区经纬度-纬度
     */
    private Double latitude;
    /**
     * 描述
     */
    private String desc;
    /**
     *相关仓库标识
     */
    private Long areaId;
    /**
     *相关仓库名称
     */
    private String areaName;
    public SundayVillage() {
    }

    public SundayVillage(String name, String image, Integer type,
                         Long provinceId, String provinceName,
                         Long cityId, String cityName, Long districtId,
                         String districtName, String address, Double longitude,
                         Double latitude,String desc,Long areaId) {
        this.name = name;
        this.image = image;
        this.type=type;
        this.provinceId = provinceId;
        this.provinceName = provinceName;
        this.cityId = cityId;
        this.cityName = cityName;
        this.districtId = districtId;
        this.districtName = districtName;
        this.address = address;
        this.longitude = longitude;
        this.latitude = latitude;
        this.desc=desc;
        this.areaId=areaId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Long getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Long provinceId) {
        this.provinceId = provinceId;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public Long getDistrictId() {
        return districtId;
    }

    public void setDistrictId(Long districtId) {
        this.districtId = districtId;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }
}
